package com.itaming.lycheeframework.core.properties;

import com.itaming.lycheeframework.common.constant.FrameworkConstant;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * XSS配置参数
 *
 * @author A.Ming
 */
@ConfigurationProperties(LycheeXssProperties.PREFIX)
@Data
public class LycheeXssProperties {

    /**
     * 配置前缀
     */
    public static final String PREFIX = FrameworkConstant.PROPERTIES_ROOT_NAME + ".xss";

    /**
     * 是否启用
     */
    private boolean enabled = true;

    /**
     * 排除路径
     */
    private List<String> excludePath = new ArrayList<>();

}
